// dlg.txt

//Mk Edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 42;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You are at the base of Ouachita Mountain, the highest peak in the Low Dhaga. Like most landmarks of the Rokaj, it has been settled, reworked, and abandoned by many waves of Ro, usually for war-related reasons.";
	text2 = "These jagged peaks are shot through with narrow tunnels, where countless waves of rebels, brigands, and raiders have come to hide. At the end of the valley ahead, you see the ruins of a tower. It has also been rebuilt and razed many times, though right now only the lowest level is sort of intact.";
	text3 = "The mountain is covered with a haze of cookfires. A few stone walls blocking your approach have been rebuilt and are now heavily guarded. You see Ro warriors and ka-boars peering out at you through the bars, shouting an alarm.";
	text4 = "At last, you have reached the fortress of the Ro raiders, the humans and beasts who have been terrorizing the Low Dhaga and who tried to kill you. They are no longer running. You can confront them directly here, though their defenses are very strong.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You approach the base of Ouachita Mountain, the highest peak in the Low Dhaga. Like most landmarks of the Rokaj, it has been settled, reworked, and abandoned by many waves of Ro, usually for war-related reasons.";
	text2 = "These jagged peaks are shot through with narrow tunnels, where countless waves of rebels, brigands, and raiders have come to hide. At the end of the valley ahead, you see the ruins of a tower. It has also been rebuilt and razed many times, though right now only the lowest level is sort of intact.";
	text3 = "The mountain is covered with a haze of cookfires. Fortunately, approaching along this hidden path, you have evaded their notice.";
	text4 = "At last, you have reached the fortress of the Ro raiders, the humans and beasts who have been terrorizing the Low Dhaga and who tried to kill you. They are no longer running. You can confront them directly here, and you may be able to slip past the worst of their defenses.";
	code =
		sf(this_town,1,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You get closer to the recently rebuilt walls of the valley. When you see the defenders, you are worried, and with good reason.";
	text2 = "The raiders have captured a number of large ballistas, and these have been set up aiming through the bars of the gates. Huge ka-boars operate them, able to spin them and direct mighty bolts at you.";
	text3 = "You can assault the tower from this direction, but it will be very dangerous. You wonder if there might be a better way.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "There is a long tunnel ahead. Parts of it are natural, and parts have been dug out by the Ro. The walls are lined with piles of equipment.";
	text2 = "The raiders have, unfortunately, placed even more defenses down here. You see huge ka-boars, each stationed behind another huge ballista.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "The raiders have constructed a busy hideout in these crumbling chambers buried under the mountain. They are crowded with supplies, workshops, and living quarters. Supplies and equipment are crammed into every available space.";
	text2 = "They have been operating here for quite some time. Raiding parties come here to rest and be resupplied, and then they return to the Low Dhaga to cause havoc.";
	text3 = "When you get close, someone shouts an alarm. At last, they have been discovered. Now they get to be raided for a change.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "You are at the back entrance to a ruined tower on Ouachita Mountain. You can see the huge stones, fine Dhagan work, etched with graffiti left by many generations of travelers and soldiers.";
	text2 = "When you enter, there is silence for a moment. Then loud roaring, the bestial challenges of ka-boars. The remaining raiders are fast running out of places to hide.";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "This is a magical workshop. You note that much of it is dedicated to enchanting and carving wood. This is where the staffs that control the ka-beasts are made.";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You are at the base of Ouachita Mountain, the highest peak in the Low Dhaga. Like most landmarks of the Rokaj, it has been settled, reworked, and abandoned by many waves of Ro, usually for war-related reasons.";
	text2 = "These jagged peaks are shot through with narrow tunnels, where countless waves of rebels, brigands, and raiders have come to hide. At the end of the valley ahead, you see the ruins of a tower. It has also been rebuilt and razed many times, though right now only the lowest level is sort of intact.";
	text3 = "At last, you have reached the fortress of the Ro raiders, the humans and beasts who have been terrorizing the Low Dhaga and who tried to kill you. They are no longer running. You can confront them directly here, though their defenses are very strong.";
	text4 = "Fortunately, you have been able to approach the mountain through a hidden pass. You will be able to evade the worst of their defenses and, hopefully, find an easier route to their master.";
	code =
		sf(this_town,1,1);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	condition = get_sdf(this_town,4) == 0;
	text1 = "There is a long tunnel ahead. Parts of it are natural, and parts have been dug out by the Ro. The walls are lined with piles of equipment.";
	text2 = "The raiders have, unfortunately, placed even more defenses down here. You see huge ka-boars, each stationed behind a huge ballista.";
	text3 = "Normally, the ka-boars would be raining deadly projectiles down on you. However, seeing you back here surprises and terrifies the simple creatures. They turn and grab their weapons, abandoning their artillery.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "When you get close to the ka-boar while bearing your altered raider staff, it has an effect.";
	text2 = "The ka-boar starts to become extremely agitated. It looks around, snarling and drooling, confused about what it is supposed to be doing.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "The raiders' control of the ka-boar is suddenly broken! It isn't your friend now. Instead, it loses control. It starts swinging its weapon in all directions, happy to attack anyone nearby.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "Clanless sees your staff. He realizes, with horror, how you are turning his boars against him. You note the expression on his face.";
	text2 = "You get a rare pleasure that comes with being a warrior of Haven: The look of despair a vassal gets when he finally realizes that nobody can outsmart the warriors of Haven.";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 23;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 24;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "At last, you have cornered the leader of the rebels in his lair. He is a wizard of the Low Dhaga. In his right hand you see a staff carved with runes, of an all-too-familiar design. It controls the horde of enormous ka-boars protecting him.";
	text2 = "His other hand rests against the gigantic wolf to his side. It snarls at you. He says, _Quiet, Zeke. I must speak with our guests before you can eat them._";
	text3 = "He turns to look at you. He is trying to appear calm and unconcerned, the style of the Ro warrior when facing danger. Yet, you can see the rage in his eyes. _Welcome, [P] of Haven. I am honored that I am worth the trouble of a visit by royalty._";
	code =
		set_attitude(4260,10);
		set_attitude(4261,10);
		set_attitude(30007,10);
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Identify yourself, rogue._";
	text1 = "_I am one who has given and will give all to drive Haven from our lands. I ..._ He chokes up. He looks away from you, trying to regain his composure.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_I am [P] [N] of Haven, and I have come to see you._";
	text1 = "Every word the man says is a struggle. He barely maintains control. The ka-boars look round uncertainly. _I am sorry I have not been a better host. This audience will be brief, I think._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Let's get this over with quickly. I have a lot to do._";
	text1 = "Every word the man says is a struggle. He barely maintains control. _You seem casual, but I know even royalty must ... must ... I will make this audience worth ..._ His voice chokes up.";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Who are you?_";
	text1 = "_I have given up my name and my clan. Until Haven is gone, I am a nothing. Call me Clanless. I built up the fortress here to strike Haven, and I ... I ... They are all lost._ Finally, his composure breaks.";
	text2 = "He points his staff at you and screams, _You destroyed them all! My warriors! My friends! My land! We will make you pay, I swear it!_";
	text3 = "He struggles to regain his composure. His control over his ka-boars weakens. They begin to snarl and paw the floor. Finally, he croaks, _I will be heard._";
	
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Are you 'The Wolf'?_";
	text1 = "He shakes his head. _No. I am guided by the Wolf, but I don't have the honor of that name._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Get your pets under control._";
	text1 = "Clanless waves his staff. The ka-boars quiet down. _Don't worry. I control them totally, even if I have the occasional ... lapse._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_It's too late to whine about it. That is the fate of all who oppose Haven._";
	text1 = "_No. No Empire lasts forever. No invader holds the Ro forever. Your queen is fading. Your land is fading. If we fail, others will succeed._";
	text2 = "This little speech doesn't concern you. Disobedient rebels have been throwing these words at you for centuries.";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_You may say your piece._";
	text1 = "He grips his staff so tightly that his knuckles turn white. He looks down at the floor. _My friends ... All gone. Only I can speak for them._";
	text2 = "Then he looks up at you. _I am the one who raised this army of rebels. I am the one who created the control staffs. I am the one who sent good warriors to die to try to kill Sutter and you. I did all this with a purpose._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I would rather just fight._ Attack.";
	text1 = "_That would be better. At the end, I find I am too tired to do anything but kill you._ He waves his staff. _Mighty boars, attack!_";
	action = END_TALK;

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_Oh wow, I changed my mind. Let's just fight._ Attack.";
	text1 = "_That would be better. At the end, I find I am too tired to do anything but kill you._ He waves his staff. _Mighty boars, attack!_";
	action = END_TALK;
	
begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_What was the purpose?_";
	text1 = "_You thought that killing the assassins I sent was a victory? It was not._ Actually, it kind of was, but it doesn't seem like a good time for debate.";
	text2 = "_It was a message to all of the Rokaj. It was a demonstration._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_And you weren't just trying to kill me?_";
	text1 = "_We couldn't kill you. My warriors had no chance of piercing the magical protections that surround you. I didn't tell them that. I sent them to die knowing that they couldn't do what they truly wanted._";
	text2 = "_I can't kill you either, at least not now, not here. Beside the point._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What were you demonstrating?_";
	text1 = "_All Empires, no matter how mighty, come to the Rokaj. They are all driven out eventually. They grow weak and fat and lazy, and we pounce._";
	text2 = "_We were demonstrating that you could be surprised, be fought. We were showing that a free Rokaj was worth dying for. Like my friends died today. Like I sent them to ... to ..._ He stops speaking and struggles to regain control.";
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_You didn't really achieve anything._";
	text1 = "_You don't understand our ways, half-Ro. You don't know what is happening._";
	text2 = "_You will soon, though. You shouldn't find out, but your failing queen will force you._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Did the Wolf tell you to do this?_";
	text1 = "_The Wolf gave me advice. Suggested how I might craft the staffs. Sent me downward. All the work after that was mine. I don't know his true name, but I will honor him._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_And are you happy with how your plan turned out?_";
	text1 = "_I don't know. I think I won't live to see the end of it. I long to join those you have slain. My work is done. The real war will be waged by the whole Rokaj._";
	text2 = "_I only wish ... Perhaps I thought you wouldn't come here._";

begintalknode;
	state = 16;
	nextstate = 17;
	condition = 1;
	question = "_You really didn't think I would find you?_";
	text1 = "_I thought Haven didn't really care about the Ro. I heard you were weak and lazy. Governor Aato is a slug. We thought you would give up. It would have made the next part of the Wolf's plan so much easier._";
	text2 = "_And yet ... Perhaps I don't have to die. I should be strong. Cut you down now. Then I can die when the next events come to pass._";
	
begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_You should know now that you can't kill me._";
	text1 = "_You are protected by the magic of Haven, eh? Well, we are Rokaj. We will kill you once. Then we will kill you again. Then we will keep killing you until you stop coming._";
	text2 = "_If that is what it takes to finally understand the Rokaj, that is what we will do._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_What are these events you so cryptically refer to?_";
	text1 = "_You will see. I regret I won't be there to witness it. I should join my friends._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Perhaps I can convince you to join us instead. Haven can make you very wealthy._";
	text1 = "His hands are trembling. _That is the way of Haven. Divide your vassals. Buy warriors. Find those who aren't loyal to the ways of their people._";
	text2 = "_That is the mistake all invaders of the Rokaj make. Our Deep Truth never changes. All of us will always hate you. Even the weaklings on the coast will remember who they are, in time._";
	text2 = "_But ... I am losing my resolve. I will not collapse in front of you. I would rather die. So, we will die. My brothers and sisters, we have done our part. I who am Clanless join you at last. Boars, attack._";
	action = END_TALK;

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_In the name of Haven, I sentence you to death._ Attack.";
	text2 = "He nods. _Good. I am losing my resolve. I will not collapse in front of you. I would rather die. So, we will die. My brothers and sisters, we have done our part. I who am Clanless join you at last. Boars, attack._";
	action = END_TALK;


//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "Clanless collapses to the ground, mortally wounded. When he falls, the staff hits the stone floor and breaks. He smiles weakly. _My magic is lost. Appropriate._";
	text2 = "He looks up at the ceiling. _My warriors, I join you. I sent you to no fate I didn't accept myself._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I might be able to save your life, but you will have to help Haven._";
	text1 = "He smiles. _No. I will not fail. It is my time, and I can see our victory coming. Haven must still face us on ... on ..._ And then he dies. The power of the raiders has been broken.";
	action = END_TALK;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_In the end, you achieved nothing._";
	text1 = "He smiles. _You will see. Haven must still face us on ... on ..._ And then he dies. The power of the raiders has been broken.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Still alive, huh? I'd better finish the job._ Kill him.";
	text1 = "At the final moment, his courage finally breaks. _No! Please! I ..._ But the blow was already on the way. You kill the Rokaj rebel. The power of the raiders has been broken.";
	action = END_TALK;


	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				